const state = {
  choiceContent: null,
  curComponent: "detail1",
  choiceImgUrl: "",
};

const mutations = {
  choice_content(state, content) {
    state.choiceContent = content;
  },
  choice_imgurl(state, imgUrl) {
    state.choiceImgUrl = imgUrl;
  }

};

const actions = {
  choiceContent({
    commit
  }, {
    content,
    imgUrl
  }) {
    commit("choice_content", content);
    commit("choice_imgurl", imgUrl)
  },
};

const getters = {};

export default {
  state,
  mutations,
  actions,
  getters,
};